<?php
//cate-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'mall','namespace'=>"Modules\Mall\Http\Controllers"],
	function () {
		Route::resource('mall', 'MallController')->middleware("permission:admin,resource");
	});

 
//cate-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'mall','namespace'=>"Modules\Mall\Http\Controllers"], 
function () {
    Route::resource('cate', 'CateController')->middleware("permission:admin,resource");
});
 
//mall-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'mall','namespace'=>"Modules\Mall\Http\Controllers"], 
function () {
    Route::resource('mall', 'MallController')->middleware("permission:admin,resource");
});
 
//slider-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'mall','namespace'=>"Modules\Mall\Http\Controllers"], 
function () {
    Route::resource('slider', 'SliderController')->middleware("permission:admin,resource");
});
 
//webset-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'mall','namespace'=>"Modules\Mall\Http\Controllers"], 
function () {
    Route::resource('webset', 'WebsetController')->middleware("permission:admin,resource");
});

Route::group(['middleware' => ['web'],'namespace'=>"Modules\Mall\Http\Controllers"],
	function () {
		Route::get('/','HomeController@index')->name ('home');
		Route::get('/lists/{id}','HomeController@lists')->name ('lists');
		Route::get('/show/{id}','HomeController@show')->name ('show');
	});
